package org.helgoboss.scite

import java.io.File
import org.helgoboss.scala_additions.Implicits._

class SciteCommand(val exeFile: File, 
        val files: Seq[File], 
        val newWindow: Boolean
        ) {
        
    val components = {
        List (
            Some(exeFile.osDependentPathExpression),
            if (newWindow) Some("-check.if.already.open=false") else None
        ).flatten ++ files.map(_.osDependentPathExpression)
    }
    
}